package com.eastfair.venueservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.boot.service.SuperService;
import com.eastfair.venueservice.dto.LoadInfoDTO;
import com.eastfair.venueservice.dto.LoadInfoExamineDTO;
import com.eastfair.venueservice.dto.LoadInfoPageQuery;
import com.eastfair.venueservice.entity.LoadInfo;
import com.eastfair.venueservice.vo.LoadInfoVo;

/**
 * 智慧物流 装卸服务
 *
 * @author Du Xiaobo
 * @date 2023/5/8 14:18
 */
public interface LoadInfoService extends SuperService<LoadInfo> {
    /**
     * 新增装卸服务信息
     *
     * @param dto
     * @return
     */
    Long saveLoadInfo(LoadInfoDTO dto);

    /**
     * 修改装卸服务
     *
     * @param dto
     */
    void updateLoadInfo(LoadInfoDTO dto);

    /**
     * 获取装卸服务详情
     *
     * @param id
     * @return
     */
    LoadInfoVo getLoadInfoById(Long id);

    /**
     * 获取装卸服务列表
     *
     * @param pageParams
     * @return
     */
    Page<LoadInfoVo> listLoadInfo(PageParams<LoadInfoPageQuery> pageParams);

    /**
     * 审核
     *
     * @param dto
     * @return
     */
    Boolean examine(LoadInfoExamineDTO dto);
}
